package com.jackiechancinema.ssm.dao;

import com.jackiechancinema.ssm.entity.Department;
import com.jackiechancinema.ssm.vo.R;

import java.util.List;

public interface DepartmentDao {
    /**
     * 新增
     * @param department
     * @return
     */
    int insert(Department department);
    /**
     * 批量新增
     * @param list
     * @return
     */
    int insertBatch(List<Department> list);
    /**
     * 删除
     * @param depart_id
     * @return
     */
    int delete(int depart_id);
    /**
     * 修改
     * @param department
     * @return
     */
    int update(Department department);
    /**
     * 查询
     * @return
     */
    List<Department> queryAll();
    /**
     * 条件查询
     * @param department
     * @return
     */
    List<Department> queryBy(Department department);


}
